import request from '@/utils/request'

//获取所有
export function getList(data) {
  return request({
    url: '/erp/navigation/list',
    method: 'get',
    params: data,
  })
}

export function doAdd(data) {
  return request({
    url: '/erp/navigation',
    method: 'post',
    data,
  })
}

//修改
export function doEdit(data) {
  return request({
    url: '/erp/navigation',
    method: 'put',
    data,
  })
}

//删除
export function doDelete(data) {
  return request({
    url: '/erp/navigation/' + data,
    method: 'delete',
  })
}